package aoyebobi.minio.constant;

import aoyebobi.minio.pojo.MinioParam;

import java.util.HashMap;
import java.util.Map;

import static aoyebobi.minio.constant.BucketConstant.DEFAULT_BUCKET;
import static aoyebobi.minio.constant.BucketConstant.OTHER_BUCKET;
import static aoyebobi.minio.constant.FileTypeConstant.*;

/**
 * @Description
 * @Author aoyebobi
 * @Date 2024-11-25
 */

public class MinioConstant {


    public static final Map<String, MinioParam> TYPE_MAP = new HashMap<>();

    static {
        TYPE_MAP.put(IMAGE, new MinioParam("image", DEFAULT_BUCKET));
        TYPE_MAP.put(OTHER, new MinioParam("document", DEFAULT_BUCKET));
        TYPE_MAP.put(DOCUMENT, new MinioParam("video", DEFAULT_BUCKET));
        TYPE_MAP.put(VIDEO, new MinioParam("other", OTHER_BUCKET));

    }
}
